package com.trs.publish.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author jia.haihong
 *纯页面跳转，为了将controller看上去更简洁
 *
 */
@Configuration  
public class MvcConfig extends WebMvcConfigurerAdapter {  
  
    @Override  
    public void addViewControllers(ViewControllerRegistry registry) {  
        registry.addViewController("/login").setViewName("login");  
        registry.addViewController("/index").setViewName("index");  
    }  
  
}  
